# !/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName : p12.py
# @Time     : 2024/5/9 21:59
# @Author   : Robot-Zsj
"""
description:

用连续自然数之和来表达整数

https://fcqian.blog.csdn.net/article/details/127341945

i:
9

o:
9=9
9=4+5
9=2+3+4
Result:3

"""
t = int(input())


def getResult():
    arr = [i + 1 for i in range(t)]
    ans = []
    l = 0
    r = 1
    total = arr[l]
    while l < t:
        if total > t:
            total -= arr[l]
            l += 1
        elif total == t:
            ans.append(arr[l:r])
            total -= arr[l]
            l += 1
            if r >= t:
                break
            else:
                total += arr[r]
                r += 1
        else:
            total += arr[r]
            r += 1
    ans.sort(key=lambda x: len(x))

    for an in ans:
        print(f"{t}={'+'.join(map(str, an))}")

    print(f"Result:{len(ans)}")


getResult()
